﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DPS.DataModel;
namespace DPS.Prototype.Model.Adapter
{
    public class ProdlineAdapter
    {
        public static ProdLine Adapter(DPSProdLineByBatchT line)
        {
            string[] models = line.Model.Split(",".ToCharArray());
            List<string> listModel = models.ToList();
            ProdLine prodLine = new ProdLine(line.Owner, line.ProdLine, line.Location,  listModel);
            return prodLine;
        }
    }
}
